package Kuangstudy;

public class Car {
    public static void main(String[] args) {
        Car car1 = new Car();
        Car car2 = new Car();
        Car car3 = new Car();

        System.out.println(car1.hashCode());
        System.out.println(car2.hashCode());
        System.out.println(car3.hashCode());

        Class<? extends Car> aClass1 = car1.getClass();
        Class<? extends Car> aClass2 = car1.getClass();
        Class<? extends Car> aClass3 = car1.getClass();

        System.out.println(aClass1.hashCode());
        System.out.println(aClass2.hashCode());
        System.out.println(aClass3.hashCode());

        ClassLoader classLoader = aClass1.getClassLoader();
        System.out.println(classLoader);

    }
}
/**
 * 
925858445
798154996
681842940
1159190947
1159190947
1159190947
jdk.internal.loader.ClassLoaders$AppClassLoader@5c647e05
1、三个class对象的Hashcode都是一样
2、原来可以这样打印出classLoader
*/